/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmClientesDet.java
 *
 * Created on 24-ago-2011, 23:35:10
 */

package GUI;

import Negocio.Cliente;
import TablasAuxiliares.TAActividadesEmpresas;
import TablasAuxiliares.TACaracteresHobbies;
import TablasAuxiliares.TACargosEmpresa;
import TablasAuxiliares.TAEstadosCiviles;
import TablasAuxiliares.TAHobbies;
import TablasAuxiliares.TAModalidadesHobbies;
import TablasAuxiliares.TANivelesEstudios;
import TablasAuxiliares.TAPaises;
import TablasAuxiliares.TAProfesiones;
import TablasAuxiliares.TASexos;
import TablasAuxiliares.TASituacionesLaborales;
import TablasAuxiliares.TATiposDocumento;
import Util.Varios;
import Util.FormatoFecha;
import Util.GestorErrores;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author Javi
 */
public class frmClientesDet extends javax.swing.JDialog {

    //Indica la operación que se está realizando
    private char _cOperacion;
    //Referencia al formulario padre
    private frmClientes _frmPadre = null;
    //Referencia al 2º formulario padre (solo cuando se llega aqui
    //desde el detalle de solicitudes/préstamos)
    private frmComprasDet _frmPadreComprasDet = null;
    //Referencia al objeto de datos principal
    private Cliente _oCliente;
    //Referencia al Histórico de Datos SocioEconómicos
    private frmHistDatSocEco _frmHistDatSocEco = null;
    //Referencia al Histórico de Datos Sociales
    private frmHistDatSoc _frmHistDatSoc = null;
    //Referencia al Histórico de Hobbies
    private frmHistHob _frmHistHob = null;
    //Objeto auxiliar para manejar el combo de hobbies
    private TAHobbies _oHobbies;

    /** Creates new form frmClientesDet */
    public frmClientesDet(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    public frmClientesDet(frmClientes parent, boolean modal) {
        super(parent, modal);
        this._frmPadre = parent;
        //Inicializo la referencia al objeto de datos del formulario padre.
        this._oCliente = parent.getoObjetoDatos();
        //Inicializo el objeto Hobbies
        this._oHobbies = new TAHobbies();
        initComponents();
        //Los combos se cargan a partir de las tablas 1 SOLA VEZ, al crear el formulario.
        this.cargarCombos();
    }

    public frmClientesDet(frmComprasDet parent, boolean modal) {
        super(parent, modal);
        this._frmPadreComprasDet = parent;
        //Inicializo la referencia al objeto de datos del formulario padre.
        this._oCliente = parent.getoObjetoDatos();
        //Inicializo el objeto Hobbies
        this._oHobbies = new TAHobbies();
        initComponents();
        //Los combos se cargan a partir de las tablas 1 SOLA VEZ, al crear el formulario.
        this.cargarCombos();
    }

    /*
     * Este método carga los atributos de la clase los controles del formulario de entrada.
     */
    private void claseAPantalla(){
        //Clase ClienteDatPers
        this.jTFIdCliente.setText( Integer.toString( this._oCliente.getoClienteDatPers().getiIdCliente()) );
        Varios.seleccionaItemCombo (jCBTipoDocumento, this._oCliente.getoClienteDatPers().getsTipoDocumento());
        this.jTFNumDocumento.setText ( this._oCliente.getoClienteDatPers().getsNumDocumento() );
        this.jTFNombre.setText( this._oCliente.getoClienteDatPers().getsNombre() );
        this.jTFApellidos.setText( this._oCliente.getoClienteDatPers().getsApellidos() );
        this.jFTFFecNac.setValue ( this._oCliente.getoClienteDatPers().getdFechaNacimiento());
        Varios.seleccionaItemCombo (jCBSexo, this._oCliente.getoClienteDatPers().getsSexo());
        Varios.seleccionaItemCombo (jCBNivelEstudios, this._oCliente.getoClienteDatPers().getsNivelEstudios());
        Varios.seleccionaItemCombo (jCBNacionalidad, this._oCliente.getoClienteDatPers().getsNacionalidad());
        this.jCkBPermisoResidencia.setSelected( this._oCliente.getoClienteDatPers().getbPermisoResidencia() );
        this.jFTFAniosResidencia.setValue( this._oCliente.getoClienteDatPers().getiAniosResidencia() );
        //Clase ClienteDatSocioEco
        this.jTFIdClienteSocEco.setText( Integer.toString( this._oCliente.getoClienteDatSocEco().getiIdCliente()));
        //Controlo si el campo clave fecha viene a nulo (solo en el insert) y en ese caso pongo la fecha de hoy
        this.jFTFFechaSocEco.setValue ( (this._oCliente.getoClienteDatSocEco().getdFecha()== null)? new Date() : this._oCliente.getoClienteDatSocEco().getdFecha());
        Varios.seleccionaItemCombo (jCBCodProfesion, this._oCliente.getoClienteDatSocEco().getsCodProfesion() );
        Varios.seleccionaItemCombo (jCBSitLaboral, this._oCliente.getoClienteDatSocEco().getsCodSitLaboral());
        Varios.seleccionaItemCombo (jCBActivEmp, this._oCliente.getoClienteDatSocEco().getsCodActivEmp());
        Varios.seleccionaItemCombo (jCBCargoEmp, this._oCliente.getoClienteDatSocEco().getsCargoEmp());
        this.jFTFAntiguedad.setValue (this._oCliente.getoClienteDatSocEco().getiAntiguedad());
        this.jFTFCambiosTrabajo.setValue (this._oCliente.getoClienteDatSocEco().getiCambiosTrabajo());
        this.jFTFSueldoAnuFijo.setValue(this._oCliente.getoClienteDatSocEco().getiSueldoAnuFijo());
        this.jFTFSueldoAnuVar.setValue( this._oCliente.getoClienteDatSocEco().getiSueldoAnuVar());
        this.jFTFOtrosIngresosAnu.setValue( this._oCliente.getoClienteDatSocEco().getiOtrosIngresosAnu());
        this.jFTFImpGastosMen.setValue( this._oCliente.getoClienteDatSocEco().getiImpGastosMen());
        this.jFTFImpHipAlqMen.setValue( this._oCliente.getoClienteDatSocEco().getiImpHipAlqMen());
        this.jFTFCoefCajaMen.setValue( this._oCliente.getoClienteDatSocEco().getiCoefCajaMen());
        this.jCkBViviendaPropia.setSelected(this._oCliente.getoClienteDatSocEco().isbViviendaPropia());
        this.jFTFValorVivienda.setValue(this._oCliente.getoClienteDatSocEco().getiValorVivienda());
        this.jCkBOtrasProp.setSelected(this._oCliente.getoClienteDatSocEco().isbOtrasProp() );
        this.jFTFValorOtrasProp.setValue(this._oCliente.getoClienteDatSocEco().getiValorOtrasProp());
        //Clase ClienteDatSoc
        this.jTFIdClienteSoc.setText( Integer.toString( this._oCliente.getoClienteDatSoc().getiIdCliente()));
        //Controlo si el campo clave fecha viene a nulo (solo en el insert) y en ese caso pongo la fecha de hoy
        this.jFTFFechaSoc.setValue ( (this._oCliente.getoClienteDatSoc().getdFecha()== null)? new Date() : this._oCliente.getoClienteDatSoc().getdFecha());
        Varios.seleccionaItemCombo (jCBEstadoCivil, this._oCliente.getoClienteDatSoc().getsEstadoCivil() );
        this.jFTFNumHijosPersonas.setValue(this._oCliente.getoClienteDatSoc().getiNumHijosPersonas());
        //Clase ClientesHob
        this.jTFIdClienteHob.setText( Integer.toString( this._oCliente.getoClienteHob().getiIdCliente()));
        //Controlo si el campo clave fecha viene a nulo (solo en el insert) y en ese caso pongo la fecha de hoy
        this.jFTFFechaHob.setValue ( (this._oCliente.getoClienteHob().getdFecha()== null)? new Date() : this._oCliente.getoClienteHob().getdFecha());
        String sCodHobby;
        //Hobby 1
        sCodHobby = this._oCliente.getoClienteHob().getasCodHobby().get(0);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob1, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob1, this._oHobbies.getsCaracter());
            //El combo de hobbies se carga en los eventos de los 2 combos anteriores
            Varios.seleccionaItemCombo (jCBHob1, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob1, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob1, "");
            Varios.seleccionaItemCombo (jCBCarHob1, "");
        }

        //Hobby 2
        sCodHobby = this._oCliente.getoClienteHob().getasCodHobby().get(1);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob2, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob2, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob2, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob2, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob2, "");
            Varios.seleccionaItemCombo (jCBCarHob2, "");
        }
        //Hobby 3
        sCodHobby = this._oCliente.getoClienteHob().getasCodHobby().get(2);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob3, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob3, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob3, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob3, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob3, "");
            Varios.seleccionaItemCombo (jCBCarHob3, "");
        }
        //Hobby 4
        sCodHobby = this._oCliente.getoClienteHob().getasCodHobby().get(3);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob4, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob4, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob4, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob4, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob4, "");
            Varios.seleccionaItemCombo (jCBCarHob4, "");
        }
        //Hobby 5
        sCodHobby = this._oCliente.getoClienteHob().getasCodHobby().get(4);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob5, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob5, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob5, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob5, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob5, "");
            Varios.seleccionaItemCombo (jCBCarHob5, "");
        }
    }

    /*
     * Este método captura los datos introducidos por el usuario y los carga en los atributos
     * correspondientes de la clase.
     */
    private void pantallaAClase(){
        //Clase principal
        this._oCliente.setiIdCliente( Integer.parseInt (this.jTFIdCliente.getText().trim()) );
        //Clase ClienteDatPers
        this._oCliente.getoClienteDatPers().setiIdCliente( Integer.parseInt (this.jTFIdCliente.getText().trim()) );
        this._oCliente.getoClienteDatPers().setsTipoDocumento (Varios.getClaveItemCombo (this.jCBTipoDocumento) );
        this._oCliente.getoClienteDatPers().setsNumDocumento( this.jTFNumDocumento.getText().trim() );
        this._oCliente.getoClienteDatPers().setsNombre( this.jTFNombre.getText().trim() );
        this._oCliente.getoClienteDatPers().setsApellidos( this.jTFApellidos.getText().trim() );
        this._oCliente.getoClienteDatPers().setdFechaNacimiento((Date) this.jFTFFecNac.getValue () );
        this._oCliente.getoClienteDatPers().setsSexo( Varios.getClaveItemCombo (this.jCBSexo) );
        this._oCliente.getoClienteDatPers().setsNivelEstudios( Varios.getClaveItemCombo (this.jCBNivelEstudios));
        this._oCliente.getoClienteDatPers().setsNacionalidad( Varios.getClaveItemCombo (this.jCBNacionalidad));
        //En función de la nacionalidad establezco si es extranjero o no
        this._oCliente.getoClienteDatPers().setbExtranjero (Varios.getClaveItemCombo (this.jCBNacionalidad));
        this._oCliente.getoClienteDatPers().setbPermisoResidencia( this.jCkBPermisoResidencia.isSelected() );
        this._oCliente.getoClienteDatPers().setiAniosResidencia( (Integer) (this.jFTFAniosResidencia.getValue()) );
        //Clase ClienteDatSocioEco
        this._oCliente.getoClienteDatSocEco().setiIdCliente( Integer.parseInt (this.jTFIdClienteSocEco.getText().trim()) );
        this._oCliente.getoClienteDatSocEco().setdFecha ( (Date) this.jFTFFechaSocEco.getValue() );
        this._oCliente.getoClienteDatSocEco().setsCodProfesion( Varios.getClaveItemCombo (this.jCBCodProfesion) );
        this._oCliente.getoClienteDatSocEco().setsCodSitLaboral( Varios.getClaveItemCombo (this.jCBSitLaboral) );
        this._oCliente.getoClienteDatSocEco().setsCodActivEmp( Varios.getClaveItemCombo (this.jCBActivEmp) );
        this._oCliente.getoClienteDatSocEco().setsCargoEmp( Varios.getClaveItemCombo (this.jCBCargoEmp) );
        this._oCliente.getoClienteDatSocEco().setiAntiguedad( (Integer) (this.jFTFAntiguedad.getValue()));
        this._oCliente.getoClienteDatSocEco().setiCambiosTrabajo( (Integer) (this.jFTFCambiosTrabajo.getValue()));
        this._oCliente.getoClienteDatSocEco().setiSueldoAnuFijo( (Integer) (this.jFTFSueldoAnuFijo.getValue()) );
        this._oCliente.getoClienteDatSocEco().setiSueldoAnuVar( (Integer) (this.jFTFSueldoAnuVar.getValue()) );
        this._oCliente.getoClienteDatSocEco().setiOtrosIngresosAnu( (Integer) (this.jFTFOtrosIngresosAnu.getValue()));
        this._oCliente.getoClienteDatSocEco().setiImpGastosMen( (Integer) (this.jFTFImpGastosMen.getValue()));
        this._oCliente.getoClienteDatSocEco().setiImpHipAlqMen( (Integer) (this.jFTFImpHipAlqMen.getValue()) );
        //Una vez conocidos los importes necesarios se calcula el coeficiente de caja (se ignora el campo de la pantalla)
        this._oCliente.getoClienteDatSocEco().setiCoefCajaMen( this._oCliente.getoClienteDatSocEco().calculaCoefCajaMen() );
        this._oCliente.getoClienteDatSocEco().setbViviendaPropia( this.jCkBViviendaPropia.isSelected());
        this._oCliente.getoClienteDatSocEco().setiValorVivienda( (Integer) (this.jFTFValorVivienda.getValue()));
        this._oCliente.getoClienteDatSocEco().setbOtrasProp( this.jCkBOtrasProp.isSelected() );
        this._oCliente.getoClienteDatSocEco().setiValorOtrasProp( (Integer) (this.jFTFValorOtrasProp.getValue()) );
        //Clase ClienteDatSoc
        this._oCliente.getoClienteDatSoc().setiIdCliente( Integer.parseInt(this.jTFIdClienteSoc.getText().trim()));
        this._oCliente.getoClienteDatSoc().setdFecha( (Date) this.jFTFFechaSoc.getValue() );
        this._oCliente.getoClienteDatSoc().setsEstadoCivil( Varios.getClaveItemCombo (this.jCBEstadoCivil) );
        this._oCliente.getoClienteDatSoc().setiNumHijosPersonas((Integer) (this.jFTFNumHijosPersonas.getValue()));
        //Clase ClientesHob
        this._oCliente.getoClienteHob().setiIdCliente( Integer.parseInt (this.jTFIdClienteHob.getText().trim()) );
        this._oCliente.getoClienteHob().setdFecha ( (Date) this.jFTFFechaHob.getValue() );
        this._oCliente.getoClienteHob().getasCodHobby().set(0, Varios.getClaveItemCombo (jCBHob1));
        this._oCliente.getoClienteHob().getasCodHobby().set(1, Varios.getClaveItemCombo (jCBHob2));
        this._oCliente.getoClienteHob().getasCodHobby().set(2, Varios.getClaveItemCombo (jCBHob3));
        this._oCliente.getoClienteHob().getasCodHobby().set(3, Varios.getClaveItemCombo (jCBHob4));
        this._oCliente.getoClienteHob().getasCodHobby().set(4, Varios.getClaveItemCombo (jCBHob5));
    }

    public void inicializaFormulario ( char cOperacion ){
        //Inicializo el código de operación
        this._cOperacion = cOperacion;
        //Carga los datos de la clase
        this.claseAPantalla();
        //Inicializa los controles necesarios
        this.inicializaControles();
    }

    /*
     * Este método carga y habilita/inhabilita los controles que sean necesarios
     */
    private void inicializaControles (){
        //Actualizo el título de la ventana en función de la operación.
        //Hay que tener en cuenta cuando se viene del formulario de conjunto de clientes y cuando
        //desde el de detalle de Solicitudes/Préstamos.
        if (this._frmPadre != null)
            this.setTitle( this._frmPadre.getoObjetoDatos().getsDescripTabla() + " - " + Varios.getLiteralOperacion(this._cOperacion) );
        else
            this.setTitle( this._frmPadreComprasDet.getoObjetoDatos().getsDescripTabla() + " - " + Varios.getLiteralOperacion(this._cOperacion) );
        //Por defecto se muestra en primer lugar el primer panel (datos personales)
        jTabbedPane1.setSelectedIndex(0);
        //Desactivar los controles en la baja y en la consulta y activarlos en el alta o la modificación
        if ( this._cOperacion == 'C' || this._cOperacion == 'B')
            Varios.SetEnabledControles( this.jTabbedPane1, false );
        else{
            Varios.SetEnabledControles( this.jTabbedPane1, true );
            //El código de cliente NUNCA es editable, y en el alta lo asigna MySql (campo autoincremental).
            this.jTFIdCliente.setEditable (false);
            this.jTFIdClienteSoc.setEditable(false);
            this.jTFIdClienteSocEco.setEditable(false);
            this.jTFIdClienteHob.setEditable(false);
            //Las fechas que forman parte de la clave de algunas tablas TAMPOCO son editables
            this.jFTFFechaSoc.setEditable(false);
            this.jFTFFechaSocEco.setEditable(false);
            this.jFTFFechaHob.setEditable(false);
            //El coeficiente de caja no es editable, es un campo calculado
            this.jFTFCoefCajaMen.setEditable(false);
            //Habilitar/Deshabilitar los campos que dependen del valor de otros
            if ( Varios.getClaveItemCombo (jCBNacionalidad).compareTo("00") == 0 ){
                this.jCkBPermisoResidencia.setEnabled(false);
                this.jFTFAniosResidencia.setEditable(false);
            }else{
                this.jCkBPermisoResidencia.setEnabled(true);
                this.jFTFAniosResidencia.setEditable(true);
            }
            if ( this.jCkBViviendaPropia.isSelected() )
                this.jFTFValorVivienda.setEditable (true);
            else{
                this.jFTFValorVivienda.setEditable (false);
            }
            if ( this.jCkBOtrasProp.isSelected() )
                this.jFTFValorOtrasProp.setEditable (true);
            else{
                this.jFTFValorOtrasProp.setEditable (false);
            }
        }
        //Los botones de consulta de los históricos NO se ven en el ALTA
        if ( this._cOperacion == 'A'){
            this.jButtonHistDatSoc.setVisible (false);
            this.jButtonHistDatSocEco.setVisible (false);
            this.jButtonHistHob.setVisible (false);
        }else{
            this.jButtonHistDatSoc.setVisible (true);
            this.jButtonHistDatSocEco.setVisible (true);
            this.jButtonHistHob.setVisible (true);
        }
    }

    /*
     * Inicializa los combos a partir de las tablas auxiliares en forma "codigo - descripcion"
     */
    private void cargarCombos(){
        //Datos personales
        Varios.cargaCombo (jCBTipoDocumento, new TATiposDocumento());
        Varios.cargaCombo (jCBSexo, new TASexos());
        Varios.cargaCombo (jCBNivelEstudios, new TANivelesEstudios());
        Varios.cargaCombo (jCBNacionalidad, new TAPaises());
        //Datos sociales
        Varios.cargaCombo (jCBEstadoCivil, new TAEstadosCiviles());
        //Datos socioeconómicos
        Varios.cargaCombo (jCBCodProfesion, new TAProfesiones());
        Varios.cargaCombo (jCBSitLaboral, new TASituacionesLaborales());
        Varios.cargaCombo (jCBActivEmp, new TAActividadesEmpresas());
        Varios.cargaCombo (jCBCargoEmp, new TACargosEmpresa());
        //Datos hobbies
        Varios.cargaCombo (jCBModHob1, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob2, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob3, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob4, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob5, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBCarHob1, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob2, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob3, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob4, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob5, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob5, new TACaracteresHobbies());
        //Los combos de los hobbys se cargan en el claseAPantalla
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButtonAceptar = new javax.swing.JButton();
        jButtonCancelar = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jTFIdCliente = new javax.swing.JTextField();
        jLabel38 = new javax.swing.JLabel();
        jCBTipoDocumento = new javax.swing.JComboBox();
        jLabel39 = new javax.swing.JLabel();
        jTFNumDocumento = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        jTFNombre = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        jTFApellidos = new javax.swing.JTextField();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jCBSexo = new javax.swing.JComboBox();
        jLabel44 = new javax.swing.JLabel();
        jCBNivelEstudios = new javax.swing.JComboBox();
        jLabel46 = new javax.swing.JLabel();
        jCBNacionalidad = new javax.swing.JComboBox();
        jCkBPermisoResidencia = new javax.swing.JCheckBox();
        jLabel47 = new javax.swing.JLabel();
        try{
            jFTFFecNac = new javax.swing.JFormattedTextField( new FormatoFecha() );
            jFTFAniosResidencia = new javax.swing.JFormattedTextField(new Integer(0));
            jPanel2 = new javax.swing.JPanel();
            jLabel11 = new javax.swing.JLabel();
            jLabel21 = new javax.swing.JLabel();
            jLabel22 = new javax.swing.JLabel();
            jLabel23 = new javax.swing.JLabel();
            jLabel24 = new javax.swing.JLabel();
            jLabel25 = new javax.swing.JLabel();
            jLabel26 = new javax.swing.JLabel();
            jLabel27 = new javax.swing.JLabel();
            jCBCodProfesion = new javax.swing.JComboBox();
            jCBSitLaboral = new javax.swing.JComboBox();
            jCBActivEmp = new javax.swing.JComboBox();
            jCBCargoEmp = new javax.swing.JComboBox();
            jLabel28 = new javax.swing.JLabel();
            jLabel29 = new javax.swing.JLabel();
            jLabel30 = new javax.swing.JLabel();
            jLabel31 = new javax.swing.JLabel();
            jLabel33 = new javax.swing.JLabel();
            jLabel35 = new javax.swing.JLabel();
            jLabel45 = new javax.swing.JLabel();
            try{
                jFTFFechaSocEco = new javax.swing.JFormattedTextField( new FormatoFecha() );
                jLabel37 = new javax.swing.JLabel();
                jTFIdClienteSocEco = new javax.swing.JTextField();
                jFTFAntiguedad = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFSueldoAnuVar = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFOtrosIngresosAnu = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFImpGastosMen = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFCoefCajaMen = new javax.swing.JFormattedTextField();
                jFTFImpHipAlqMen = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFValorOtrasProp = new javax.swing.JFormattedTextField();
                jFTFValorVivienda = new javax.swing.JFormattedTextField();
                jFTFSueldoAnuFijo = new javax.swing.JFormattedTextField(new Integer(0));
                jFTFCambiosTrabajo = new javax.swing.JFormattedTextField(new Integer(0));
                jCkBViviendaPropia = new javax.swing.JCheckBox();
                jCkBOtrasProp = new javax.swing.JCheckBox();
                jButtonHistDatSocEco = new javax.swing.JButton();
                jPanel3 = new javax.swing.JPanel();
                jLabel12 = new javax.swing.JLabel();
                jCBEstadoCivil = new javax.swing.JComboBox();
                jLabel13 = new javax.swing.JLabel();
                jLabel48 = new javax.swing.JLabel();
                jTFIdClienteSoc = new javax.swing.JTextField();
                jLabel49 = new javax.swing.JLabel();
                try{
                    jFTFFechaSoc = new javax.swing.JFormattedTextField( new FormatoFecha() );
                    jFTFNumHijosPersonas = new javax.swing.JFormattedTextField();
                    jButtonHistDatSoc = new javax.swing.JButton();
                    jPanel4 = new javax.swing.JPanel();
                    jLabel32 = new javax.swing.JLabel();
                    jLabel34 = new javax.swing.JLabel();
                    jLabel50 = new javax.swing.JLabel();
                    jCBModHob1 = new javax.swing.JComboBox();
                    jCBCarHob1 = new javax.swing.JComboBox();
                    jCBHob1 = new javax.swing.JComboBox();
                    jLabel51 = new javax.swing.JLabel();
                    jTFIdClienteHob = new javax.swing.JTextField();
                    jLabel52 = new javax.swing.JLabel();
                    try{
                        jFTFFechaHob = new javax.swing.JFormattedTextField( new FormatoFecha() );
                        jCBModHob2 = new javax.swing.JComboBox();
                        jCBModHob3 = new javax.swing.JComboBox();
                        jCBModHob4 = new javax.swing.JComboBox();
                        jCBModHob5 = new javax.swing.JComboBox();
                        jCBCarHob2 = new javax.swing.JComboBox();
                        jCBCarHob3 = new javax.swing.JComboBox();
                        jCBCarHob4 = new javax.swing.JComboBox();
                        jCBCarHob5 = new javax.swing.JComboBox();
                        jCBHob2 = new javax.swing.JComboBox();
                        jCBHob3 = new javax.swing.JComboBox();
                        jCBHob4 = new javax.swing.JComboBox();
                        jCBHob5 = new javax.swing.JComboBox();
                        jButtonHistHob = new javax.swing.JButton();

                        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

                        jButtonAceptar.setText("Aceptar");
                        jButtonAceptar.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jButtonAceptarActionPerformed(evt);
                            }
                        });

                        jButtonCancelar.setText("Cancelar");
                        jButtonCancelar.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jButtonCancelarActionPerformed(evt);
                            }
                        });

                        jLabel36.setText("IdCliente");

                        jTFIdCliente.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jTFIdClienteActionPerformed(evt);
                            }
                        });

                        jLabel38.setText("Tipo Documento");

                        jCBTipoDocumento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                        jLabel39.setText("Número de documento");

                        jLabel40.setText("Nombre");

                        jLabel41.setText("Apellidos");

                        jLabel42.setText("Fecha nacimiento");

                        jLabel43.setText("Sexo");

                        jCBSexo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
                        jCBSexo.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jCBSexoActionPerformed(evt);
                            }
                        });

                        jLabel44.setText("Nivel de estudios");

                        jCBNivelEstudios.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                        jLabel46.setText("Nacionalidad");

                        jCBNacionalidad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
                        jCBNacionalidad.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jCBNacionalidadActionPerformed(evt);
                            }
                        });

                        jCkBPermisoResidencia.setText("Permiso de residencia");
                        jCkBPermisoResidencia.addActionListener(new java.awt.event.ActionListener() {
                            public void actionPerformed(java.awt.event.ActionEvent evt) {
                                jCkBPermisoResidenciaActionPerformed(evt);
                            }
                        });

                        jLabel47.setText("Años de residencia");

                    }catch (Exception e){
                        e.printStackTrace();
                    }

                    jFTFAniosResidencia.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                    jPanel1.setLayout(jPanel1Layout);
                    jPanel1Layout.setHorizontalGroup(
                        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(32, 32, 32)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jLabel47)
                                    .addGap(18, 18, 18)
                                    .addComponent(jFTFAniosResidencia, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap())
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jCkBPermisoResidencia)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(jLabel36)
                                            .addGap(20, 20, 20)
                                            .addComponent(jTFIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(jLabel40)
                                            .addGap(15, 15, 15)
                                            .addComponent(jTFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                                .addComponent(jLabel38)
                                                .addGap(7, 7, 7)
                                                .addComponent(jCBTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                                .addComponent(jLabel44, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jCBNivelEstudios, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addComponent(jLabel41)
                                                    .addGap(9, 9, 9)
                                                    .addComponent(jTFApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                                    .addComponent(jLabel42)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jFTFFecNac, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 87, Short.MAX_VALUE)
                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel39)
                                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                                            .addComponent(jLabel43)
                                                            .addGap(12, 12, 12)
                                                            .addComponent(jCBSexo, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addGap(10, 10, 10)
                                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                                            .addComponent(jLabel46)
                                                            .addGap(8, 8, 8)
                                                            .addComponent(jCBNacionalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addComponent(jTFNumDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                                    .addContainerGap(131, Short.MAX_VALUE))))
                    );
                    jPanel1Layout.setVerticalGroup(
                        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(30, 30, 30)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel36)
                                .addComponent(jTFIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel38)
                                        .addComponent(jCBTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel40)
                                        .addComponent(jTFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel41)
                                        .addComponent(jTFApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addComponent(jLabel39)
                                .addComponent(jTFNumDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel42)
                                            .addComponent(jFTFFecNac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addComponent(jLabel43)
                                        .addComponent(jCBSexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel44)
                                        .addComponent(jCBNivelEstudios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)
                                    .addComponent(jCkBPermisoResidencia))
                                .addComponent(jLabel46)
                                .addComponent(jCBNacionalidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel47)
                                .addComponent(jFTFAniosResidencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(113, Short.MAX_VALUE))
                    );

                    jTabbedPane1.addTab("Datos Personales", jPanel1);

                    jLabel11.setText("Profesión");

                    jLabel21.setText("Situación laboral");

                    jLabel22.setText("Años antigüedad empresa");

                    jLabel23.setText("Actividad empresa");

                    jLabel24.setText("Cargo");

                    jLabel25.setText("Sueldo bruto anual fijo");

                    jLabel26.setText("Sueldo bruto anual variable");

                    jLabel27.setText("Otros ingresos anuales");

                    jCBCodProfesion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                    jCBActivEmp.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                    jCBCargoEmp.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                    jLabel28.setText("Importe hipoteca/alquiler mensual");

                    jLabel29.setText("Importe gastos mensuales");

                    jLabel30.setText("Coeficiente caja mensual");

                    jLabel31.setText("Cambios trabajo");

                    jLabel33.setText("Valor vivienda");

                    jLabel35.setText("Valor otras propiedades");

                    jLabel45.setText("Fecha actualización");

                }catch (Exception e){
                    e.printStackTrace();
                }

                jLabel37.setText("IdCliente");

                jTFIdClienteSocEco.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jTFIdClienteSocEcoActionPerformed(evt);
                    }
                });

                jFTFAntiguedad.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFSueldoAnuVar.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFOtrosIngresosAnu.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFImpGastosMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFCoefCajaMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFImpHipAlqMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFValorOtrasProp.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFValorVivienda.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFSueldoAnuFijo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jFTFCambiosTrabajo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jCkBViviendaPropia.setText("Vivienda propia");
                jCkBViviendaPropia.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCkBViviendaPropiaActionPerformed(evt);
                    }
                });

                jCkBOtrasProp.setText("Otras propiedades");
                jCkBOtrasProp.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCkBOtrasPropActionPerformed(evt);
                    }
                });

                jButtonHistDatSocEco.setText("Hist. Dat. SocEco.");
                jButtonHistDatSocEco.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButtonHistDatSocEcoActionPerformed(evt);
                    }
                });

                javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
                jPanel2.setLayout(jPanel2Layout);
                jPanel2Layout.setHorizontalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(30, 30, 30)
                                .addComponent(jLabel37)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTFIdClienteSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel45)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jFTFFechaSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel27)
                                            .addComponent(jLabel25)
                                            .addComponent(jLabel26))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 92, Short.MAX_VALUE)
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jFTFOtrosIngresosAnu, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jFTFSueldoAnuFijo, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jFTFSueldoAnuVar, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addComponent(jLabel11)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel22)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 147, Short.MAX_VALUE)
                                        .addComponent(jFTFAntiguedad, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel31)
                                        .addGap(18, 18, 18)
                                        .addComponent(jFTFCambiosTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel21)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(jCBSitLaboral, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jCBCodProfesion, 0, 176, Short.MAX_VALUE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel23)
                                            .addComponent(jLabel24))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jCBCargoEmp, 0, 210, Short.MAX_VALUE)
                                            .addComponent(jCBActivEmp, javax.swing.GroupLayout.Alignment.LEADING, 0, 210, Short.MAX_VALUE))))))
                        .addGap(38, 38, 38)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabel35)
                                    .addComponent(jCkBViviendaPropia)
                                    .addComponent(jCkBOtrasProp))
                                .addGap(78, 78, 78)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jFTFValorVivienda, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFTFValorOtrasProp, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel28)
                                    .addComponent(jLabel29)
                                    .addComponent(jLabel30)
                                    .addComponent(jButtonHistDatSocEco))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jFTFImpGastosMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFTFImpHipAlqMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFTFCoefCajaMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(175, 175, 175))
                );
                jPanel2Layout.setVerticalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTFIdClienteSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jFTFFechaSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel45)
                                .addComponent(jButtonHistDatSocEco))
                            .addComponent(jLabel37))
                        .addGap(28, 28, 28)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel28)
                                    .addComponent(jFTFImpHipAlqMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel29)
                                    .addComponent(jFTFImpGastosMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel30)
                                    .addComponent(jFTFCoefCajaMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(48, 48, 48)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel33)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jCkBOtrasProp)
                                        .addGap(8, 8, 8)
                                        .addComponent(jLabel35))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jFTFValorVivienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(36, 36, 36)
                                        .addComponent(jFTFValorOtrasProp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel11)
                                    .addComponent(jCBCodProfesion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jCBSitLaboral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel21))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel22)
                                    .addComponent(jFTFAntiguedad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel23)
                                    .addComponent(jCBActivEmp, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jCkBViviendaPropia))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel24)
                                    .addComponent(jCBCargoEmp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(17, 17, 17)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel31)
                                    .addComponent(jFTFCambiosTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jFTFSueldoAnuFijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jFTFSueldoAnuVar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jFTFOtrosIngresosAnu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel25)
                                        .addGap(13, 13, 13)
                                        .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel27)))))
                        .addContainerGap(83, Short.MAX_VALUE))
                );

                jTabbedPane1.addTab("Datos SocioEconómicos", jPanel2);

                jLabel12.setText("Estado civil");

                jCBEstadoCivil.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

                jLabel13.setText("Numero de hijos/personas a su cargo");

                jLabel48.setText("IdCliente");

                jTFIdClienteSoc.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jTFIdClienteSocActionPerformed(evt);
                    }
                });

                jLabel49.setText("Fecha actualización");

            }catch (Exception e){
                e.printStackTrace();
            }

            jFTFNumHijosPersonas.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

            jButtonHistDatSoc.setText("Hist. Dat. Soc.");
            jButtonHistDatSoc.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButtonHistDatSocActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(138, 138, 138)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel13)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jFTFNumHijosPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel12)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jCBEstadoCivil, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel48)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jTFIdClienteSoc, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel49)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jFTFFechaSoc, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(38, 38, 38)
                    .addComponent(jButtonHistDatSoc)
                    .addContainerGap(148, Short.MAX_VALUE))
            );
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(36, 36, 36)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTFIdClienteSoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel49)
                            .addComponent(jFTFFechaSoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonHistDatSoc))
                        .addComponent(jLabel48))
                    .addGap(72, 72, 72)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jCBEstadoCivil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel12))
                    .addGap(24, 24, 24)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel13)
                        .addComponent(jFTFNumHijosPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(247, Short.MAX_VALUE))
            );

            jTabbedPane1.addTab("Datos Sociales", jPanel3);

            jLabel32.setText("Modalidad");

            jLabel34.setText("Caracter");

            jLabel50.setText("Hobby");

            jCBModHob1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCBModHob1ActionPerformed(evt);
                }
            });

            jCBCarHob1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCBCarHob1ActionPerformed(evt);
                }
            });

            jLabel51.setText("IdCliente");

            jTFIdClienteHob.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTFIdClienteHobActionPerformed(evt);
                }
            });

            jLabel52.setText("Fecha actualización");

        }catch (Exception e){
            e.printStackTrace();
        }

        jCBModHob2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob2ActionPerformed(evt);
            }
        });

        jCBModHob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob3ActionPerformed(evt);
            }
        });

        jCBModHob4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob4ActionPerformed(evt);
            }
        });

        jCBModHob5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob5ActionPerformed(evt);
            }
        });

        jCBCarHob2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob2ActionPerformed(evt);
            }
        });

        jCBCarHob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob3ActionPerformed(evt);
            }
        });

        jCBCarHob4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob4ActionPerformed(evt);
            }
        });

        jCBCarHob5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob5ActionPerformed(evt);
            }
        });

        jButtonHistHob.setText("Hist. Hobbies");
        jButtonHistHob.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonHistHobActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(117, 117, 117)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel51)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTFIdClienteHob, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel52)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jFTFFechaHob, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(359, 359, 359)
                        .addComponent(jButtonHistHob))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel32)
                            .addComponent(jCBModHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(37, 37, 37)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCBCarHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel34)
                            .addComponent(jCBCarHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(32, 32, 32)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCBHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel50)
                            .addComponent(jCBHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(182, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTFIdClienteHob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel52)
                        .addComponent(jFTFFechaHob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButtonHistHob))
                    .addComponent(jLabel51))
                .addGap(33, 33, 33)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel32)
                        .addGap(18, 18, 18)
                        .addComponent(jCBModHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel50)
                            .addComponent(jLabel34))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCBCarHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(148, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Hobbies", jPanel4);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 770, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(307, 307, 307)
                        .addComponent(jButtonAceptar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonCancelar)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptar)
                    .addComponent(jButtonCancelar))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarActionPerformed
        boolean bResultadoOK = false;
        this.pantallaAClase ();
        //Inicializo el vector global de errores
        GestorErrores.getInstancia().getvErrores().clear();
        if (this._cOperacion == 'A')    //Alta
            bResultadoOK = this._oCliente.insert();
        else if (this._cOperacion == 'M')    //Actualizacion
            bResultadoOK = this._oCliente.update();
        else if (this._cOperacion == 'B'){    //Borrado
            //Pedir confirmación para borrar
            if ( JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog( null, "Va a borrar el cliente y toda la información asociada a él \n¿Está seguro?" ,"Aviso", JOptionPane.YES_NO_OPTION))
                bResultadoOK = this._oCliente.delete();
            else
                return;     //Se cancela la operación
        }else if (this._cOperacion == 'C')    //Consulta
            bResultadoOK = true;
        
        if ( !bResultadoOK ){
            //Si ha habido errores informo de ellos
            String mensaje = "¡Error en la operación!" + "\n";
            for (int i= 0; i< GestorErrores.getInstancia().getvErrores().size(); i++)
                mensaje = mensaje + GestorErrores.getInstancia().getvErrores().get(i) + "\n";
            JOptionPane.showMessageDialog( null, mensaje,"Aviso", JOptionPane.WARNING_MESSAGE);
        }else{
            //Si no ha habido errores doy mensaje de información de la operación
            if (this._cOperacion == 'A')    //Alta
                JOptionPane.showMessageDialog( null, "Alta realizada","Aviso", JOptionPane.INFORMATION_MESSAGE);
            else if (this._cOperacion == 'M')    //Actualizacion
                JOptionPane.showMessageDialog( null, "Modificación realizada","Aviso", JOptionPane.INFORMATION_MESSAGE);
            else if (this._cOperacion == 'B')    //Borrado
                JOptionPane.showMessageDialog( null, "Baja realizada","Aviso", JOptionPane.INFORMATION_MESSAGE);
            //Si la operación es una CONSULTA no doy ningún aviso.
            //Actualizo la vista de los datos en el formulario padre
            //Cuando se viene del formulario de conjunto de clientes
            if (this._frmPadre != null)
                this._frmPadre.actualizarVista("");
        }
        //Ocultar la ventana solo si el resultado ha sido OK.
        setVisible ( (bResultadoOK)? false:true );
}//GEN-LAST:event_jButtonAceptarActionPerformed

    private void jButtonCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarActionPerformed
        setVisible( false );
}//GEN-LAST:event_jButtonCancelarActionPerformed

    private void jTFIdClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTFIdClienteActionPerformed

    private void jCBSexoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBSexoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jCBSexoActionPerformed

    private void jCkBPermisoResidenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCkBPermisoResidenciaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jCkBPermisoResidenciaActionPerformed

    private void jCBNacionalidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBNacionalidadActionPerformed
        //Si el valor es España inicializo e inhabilito los campos que son para extranjeros
        if ( Varios.getClaveItemCombo (jCBNacionalidad).compareTo("00") == 0 ){
            this.jCkBPermisoResidencia.setSelected(false);
            this.jFTFAniosResidencia.setValue(0);
            this.jCkBPermisoResidencia.setEnabled(false);
            this.jFTFAniosResidencia.setEditable(false);
        }else{
            this.jCkBPermisoResidencia.setEnabled(true);
            this.jFTFAniosResidencia.setEditable(true);
        }
    }//GEN-LAST:event_jCBNacionalidadActionPerformed

    private void jTFIdClienteSocEcoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteSocEcoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTFIdClienteSocEcoActionPerformed

    private void jTFIdClienteSocActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteSocActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTFIdClienteSocActionPerformed

    private void jTFIdClienteHobActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteHobActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTFIdClienteHobActionPerformed

    private void jButtonHistDatSocEcoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHistDatSocEcoActionPerformed
        //Create and set up the window.
        if ( this._frmHistDatSocEco == null ){
            this._frmHistDatSocEco = new frmHistDatSocEco ( this, true );
            this._frmHistDatSocEco.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
            this._frmHistDatSocEco.setLocationRelativeTo(this);

            this._frmHistDatSocEco.pack();
        }
        //Establezco la condición para el idCliente y así solamente salen en el formulario los registros
        //asociados al cliente actual. Se hace en el formulario padre antes del selectAll
        //Establezco el idCliente en el objeto asociado al formulario histórico
        this._frmHistDatSocEco.getoObjetoDatos().setiIdCliente( this._oCliente.getiIdCliente() );
        //Carga de los datos en la pantalla
        this._frmHistDatSocEco.actualizarVista(this._frmHistDatSocEco.getoObjetoDatos().formaCondicionWhere());
        //Display the window.
        this._frmHistDatSocEco.setVisible(true);
    }//GEN-LAST:event_jButtonHistDatSocEcoActionPerformed

    private void jButtonHistDatSocActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHistDatSocActionPerformed
        //Create and set up the window.
        if ( this._frmHistDatSoc == null ){
            this._frmHistDatSoc = new frmHistDatSoc ( this, true );
            this._frmHistDatSoc.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
            this._frmHistDatSoc.setLocationRelativeTo(this);

            this._frmHistDatSoc.pack();
        }
        //Establezco la condición para el idCliente y así solamente salen en el formulario los registros
        //asociados al cliente actual. Se hace en el formulario padre antes del selectAll
        //Establezco el idCliente en el objeto asociado al formulario histórico
        this._frmHistDatSoc.getoObjetoDatos().setiIdCliente( this._oCliente.getiIdCliente() );
        //Carga de los datos en la pantalla
        this._frmHistDatSoc.actualizarVista(this._frmHistDatSoc.getoObjetoDatos().formaCondicionWhere());
        //Vuelvo a quitar la condición para los posteriores selectAll
        this._frmHistDatSoc.getoObjetoDatos().setsCondWhere("");

        //Display the window.
        this._frmHistDatSoc.setVisible(true);
    }//GEN-LAST:event_jButtonHistDatSocActionPerformed

    private void jButtonHistHobActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHistHobActionPerformed
        //Create and set up the window.
        if ( this._frmHistHob == null ){
            this._frmHistHob = new frmHistHob ( this, true );
            this._frmHistHob.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
            this._frmHistHob.setLocationRelativeTo(this);

            this._frmHistHob.pack();
        }
        //Establezco la condición para el idCliente y así solamente salen en el formulario los registros
        //asociados al cliente actual. Se hace en el formulario padre antes del selectAll
        //Establezco el idCliente en el objeto asociado al formulario histórico
        this._frmHistHob.getoObjetoDatos().setiIdCliente( this._oCliente.getiIdCliente() );
        //Carga de los datos en la pantalla
        this._frmHistHob.actualizarVista(this._frmHistHob.getoObjetoDatos().formaCondicionWhere());
        //Display the window.
        this._frmHistHob.setVisible(true);
    }//GEN-LAST:event_jButtonHistHobActionPerformed

    private void jCkBViviendaPropiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCkBViviendaPropiaActionPerformed
        if ( this.jCkBViviendaPropia.isSelected() )
            this.jFTFValorVivienda.setEditable (true);
        else{
            this.jFTFValorVivienda.setEditable (false);
            this.jFTFValorVivienda.setValue(0);
        }
    }//GEN-LAST:event_jCkBViviendaPropiaActionPerformed

    private void jCkBOtrasPropActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCkBOtrasPropActionPerformed
        if ( this.jCkBOtrasProp.isSelected() )
            this.jFTFValorOtrasProp.setEditable (true);
        else{
            this.jFTFValorOtrasProp.setEditable (false);
            this.jFTFValorOtrasProp.setValue(0);
        }
    }//GEN-LAST:event_jCkBOtrasPropActionPerformed

    private void jCBModHob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob1ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob1, this._oHobbies, Varios.getClaveItemCombo (jCBModHob1), Varios.getClaveItemCombo (jCBCarHob1));
    }//GEN-LAST:event_jCBModHob1ActionPerformed

    private void jCBCarHob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob1ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob1, this._oHobbies, Varios.getClaveItemCombo (jCBModHob1), Varios.getClaveItemCombo (jCBCarHob1));
    }//GEN-LAST:event_jCBCarHob1ActionPerformed

    private void jCBModHob2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob2ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob2, this._oHobbies, Varios.getClaveItemCombo (jCBModHob2), Varios.getClaveItemCombo (jCBCarHob2));
    }//GEN-LAST:event_jCBModHob2ActionPerformed

    private void jCBCarHob2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob2ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob2, this._oHobbies, Varios.getClaveItemCombo (jCBModHob2), Varios.getClaveItemCombo (jCBCarHob2));
    }//GEN-LAST:event_jCBCarHob2ActionPerformed

    private void jCBModHob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob3ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob3, this._oHobbies, Varios.getClaveItemCombo (jCBModHob3), Varios.getClaveItemCombo (jCBCarHob3));
    }//GEN-LAST:event_jCBModHob3ActionPerformed

    private void jCBCarHob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob3ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob3, this._oHobbies, Varios.getClaveItemCombo (jCBModHob3), Varios.getClaveItemCombo (jCBCarHob3));
    }//GEN-LAST:event_jCBCarHob3ActionPerformed

    private void jCBModHob4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob4ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob4, this._oHobbies, Varios.getClaveItemCombo (jCBModHob4), Varios.getClaveItemCombo (jCBCarHob4));
    }//GEN-LAST:event_jCBModHob4ActionPerformed

    private void jCBCarHob4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob4ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob4, this._oHobbies, Varios.getClaveItemCombo (jCBModHob4), Varios.getClaveItemCombo (jCBCarHob4));
    }//GEN-LAST:event_jCBCarHob4ActionPerformed

    private void jCBModHob5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob5ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob5, this._oHobbies, Varios.getClaveItemCombo (jCBModHob5), Varios.getClaveItemCombo (jCBCarHob5));
    }//GEN-LAST:event_jCBModHob5ActionPerformed

    private void jCBCarHob5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob5ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob5, this._oHobbies, Varios.getClaveItemCombo (jCBModHob5), Varios.getClaveItemCombo (jCBCarHob5));
    }//GEN-LAST:event_jCBCarHob5ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAceptar;
    private javax.swing.JButton jButtonCancelar;
    private javax.swing.JButton jButtonHistDatSoc;
    private javax.swing.JButton jButtonHistDatSocEco;
    private javax.swing.JButton jButtonHistHob;
    private javax.swing.JComboBox jCBActivEmp;
    private javax.swing.JComboBox jCBCarHob1;
    private javax.swing.JComboBox jCBCarHob2;
    private javax.swing.JComboBox jCBCarHob3;
    private javax.swing.JComboBox jCBCarHob4;
    private javax.swing.JComboBox jCBCarHob5;
    private javax.swing.JComboBox jCBCargoEmp;
    private javax.swing.JComboBox jCBCodProfesion;
    private javax.swing.JComboBox jCBEstadoCivil;
    private javax.swing.JComboBox jCBHob1;
    private javax.swing.JComboBox jCBHob2;
    private javax.swing.JComboBox jCBHob3;
    private javax.swing.JComboBox jCBHob4;
    private javax.swing.JComboBox jCBHob5;
    private javax.swing.JComboBox jCBModHob1;
    private javax.swing.JComboBox jCBModHob2;
    private javax.swing.JComboBox jCBModHob3;
    private javax.swing.JComboBox jCBModHob4;
    private javax.swing.JComboBox jCBModHob5;
    private javax.swing.JComboBox jCBNacionalidad;
    private javax.swing.JComboBox jCBNivelEstudios;
    private javax.swing.JComboBox jCBSexo;
    private javax.swing.JComboBox jCBSitLaboral;
    private javax.swing.JComboBox jCBTipoDocumento;
    private javax.swing.JCheckBox jCkBOtrasProp;
    private javax.swing.JCheckBox jCkBPermisoResidencia;
    private javax.swing.JCheckBox jCkBViviendaPropia;
    private javax.swing.JFormattedTextField jFTFAniosResidencia;
    private javax.swing.JFormattedTextField jFTFAntiguedad;
    private javax.swing.JFormattedTextField jFTFCambiosTrabajo;
    private javax.swing.JFormattedTextField jFTFCoefCajaMen;
    private javax.swing.JFormattedTextField jFTFFecNac;
    private javax.swing.JFormattedTextField jFTFFechaHob;
    private javax.swing.JFormattedTextField jFTFFechaSoc;
    private javax.swing.JFormattedTextField jFTFFechaSocEco;
    private javax.swing.JFormattedTextField jFTFImpGastosMen;
    private javax.swing.JFormattedTextField jFTFImpHipAlqMen;
    private javax.swing.JFormattedTextField jFTFNumHijosPersonas;
    private javax.swing.JFormattedTextField jFTFOtrosIngresosAnu;
    private javax.swing.JFormattedTextField jFTFSueldoAnuFijo;
    private javax.swing.JFormattedTextField jFTFSueldoAnuVar;
    private javax.swing.JFormattedTextField jFTFValorOtrasProp;
    private javax.swing.JFormattedTextField jFTFValorVivienda;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JTextField jTFApellidos;
    private javax.swing.JTextField jTFIdCliente;
    private javax.swing.JTextField jTFIdClienteHob;
    private javax.swing.JTextField jTFIdClienteSoc;
    private javax.swing.JTextField jTFIdClienteSocEco;
    private javax.swing.JTextField jTFNombre;
    private javax.swing.JTextField jTFNumDocumento;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
